import Vue from 'vue'
import Router from 'vue-router'
import Setting from './setting'
export default new Router({
  // mode: NODE_ENV === "prod" ? "history" : "",
  routes: [
    { path: '*', redirect: '/monitor' }, /*默认跳转路由*/
    Setting,
    {
      path: "/overview",
      component: () => import('../components/Overview'),
    },
    {
      path: "/transport",
      component: () => import('../components/Transport'),
    },
    {
      path: "/maintain",
      component: () => import('../components/Maintain'),
    },
    {
      path: "/reservation",
      component: () => import('../components/Reservation'),
    },
    {
      path: "/monitor",
      component: () => import('../components/Monitor'),
    },
  ]
})

Vue.use(Router);